package org.jxc.dao;

import org.hibernate.SessionFactory;
import org.jxc.domain.Warehouse;
import org.team4.dao.GenericDAO;


public class WarehouseDAO extends GenericDAO<Warehouse> {

	private static final long serialVersionUID = 376038639038947152L;
	
	private static WarehouseDAO instance;
	
	public static WarehouseDAO getInstance(SessionFactory sessionFactory) {
        if(instance == null) {
            instance =  new WarehouseDAO(sessionFactory);
        }
        return instance;
    }
	
	private WarehouseDAO(SessionFactory sessionFactory) {
		super(sessionFactory, Warehouse.class);
	}
	
}